package com.qf.enums;

import lombok.Getter;

@Getter
public enum ExceptionEnums {
    SUCCESS(0,"成功"),
    PARAM_ERROR(1,"参数不合法!!"),
    CAPTCHA_ERROR(5,"验证码错误!!"),
    USER_REGISTER_ERROR(31,"注册账号失败!!"),
    CHECK_USERNAME(11,"用户名不可用!!"),
    USER_USERNAME_ERROR(32,"用户名不正确!!"),
    USER_PASSWORD_ERROR(33,"密码不正确!!"),
    LIST_PAGEINFO(41,"分页查询无数据"),
    PICFILE_NULL(51,"商品图片为必填项,不能为空"),
    PICFILE_BIG(52,"商品图片过大"),
    PICFILE_TYPE(53,"商品图片类型不匹配"),
    PICFILE_IO(54,"商品图片已损坏"),
    ITEM_SAVE_ERROR(55,"商品信息添加失败"),
    ITEM_DELETE_ERROR(61,"删除失败"),
    ITEM_UPDATE_FINDONE_ERROR(71,"修改-回显查询失败"),
    PIC_NULL(72,"图片不能为空"),
  BAD (73,"图片已经损坏") ;
    private Integer code;
    private String msg;

    ExceptionEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
